package com.gzx.spring.apis.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gzx.risk.core.pojo.CommonResult;
import com.gzx.risk.core.tags.CommonLog;
import com.gzx.spring.apis.service.JishuService;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;

@Tag(name = "apisHello")
@RestController
@RequestMapping("/apis/hello")
public class ApisHelloController {

	@Resource
	private JishuService jishuService;
	//curl -X POST -H "X-Self: gzx" 127.0.0.1:9400/apis/hello/say
	@Operation(summary = "say")
	@CommonLog("say")
	@PostMapping("/say")
	public CommonResult<String> say() throws Exception {
		return CommonResult.ok("OK");
	}
}
